package com.demo.spring.aop底层演示.demo3;

import java.util.ArrayList;
import java.util.List;

import org.aopalliance.intercept.MethodInterceptor;

public class Test {

	public static void main(String[] args) throws Throwable {
		Target target = new Target();
		List<MethodInterceptor> list = new ArrayList<MethodInterceptor>() {{
			add(new Advice1());
			add(new Advice2());
		}};
		MyInvocation invocation = new MyInvocation(target, Target.class.getMethod("foo"), null, list);
		invocation.proceed();
	}
	
}
